home *** CD-ROM | disk | FTP | other *** search
/ 130 MIDI Tool Box / 130 MIDI Tool Box.iso / mpu401 / dxswremt.c < prev    next >
C/C++ Source or Header  |  1986-11-02  |  619b  |  29 lines

  1. /* Copyright (C) 1986 by M. J. Shannon, Jr.
  2. ** Permission to distribute for non-commercial uses granted as long as this
  3. ** notice is retained.  Violators will be prosecuted.
  4. */
  5.  
  6. #include    "mpu.h"
  7.  
  8. static unsigned char set1switch[] =
  9. {
  10.     0xFF,    /* MPU system exclusive */
  11.     0xF0,    /* MIDI system exclusive */
  12.     0x43,    /* ID: Yamaha */
  13.     0x10,    /* Substatus/channel */
  14.     0x08,    /* parameter group */
  15.     0x00,    /* switch number */
  16.     0x00,    /* switch value */
  17.     0xF7    /* EOX */
  18. };
  19.  
  20. void
  21. dxswremt(sw, val)
  22. unsigned char sw;
  23. unsigned char val;
  24. {
  25.     set1switch[5] = sw;
  26.     set1switch[6] = val;
  27.     mpu_sexcl(set1switch);
  28. }
  29.